package view;

import java.awt.Color;
import java.awt.Dimension;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;

import ressources.Constant;

public class PawnButton extends JButton{
	private static final long serialVersionUID = -5906593409484839458L;
	private String img;
	public PawnButton(String img){
		this.img = img;
		this.setBackground(Color.white);
		Icon icon = new ImageIcon(Constant.path + img);
		this.setIcon(icon);
		this.setToolTipText("Positionner le pion");
		this.setPreferredSize(new Dimension(78,83));

	}
}
